#!/usr/bin/env python
"""
Django Channels启动脚本
用于启动支持WebSocket的Django应用
"""

import os
import sys
import django
from django.core.management import execute_from_command_line

if __name__ == "__main__":
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Meet.settings')
    django.setup()
    
    # 启动Django Channels服务器
    execute_from_command_line(['manage.py', 'runserver', '0.0.0.0:8000'])
